<template>
  <div>
    <slot></slot>
    <el-button style="margin: 0 5px;width: auto !important;"
      @click="$emit('close')"
      v-if="close"
      >取消</el-button>
    <el-button 
      style="width: auto !important;margin: 0 5px;"
      @click="$emit('submit')"
      :loading="loading"
      v-if="submit && setLook !== 0"
      type="primary">{{butName}}</el-button>
  </div>
</template>
<script>

export default {
  name: 'FooterModal',
  props: {
    loading: {
      type: Boolean,
      default: false
    },
    submit: {
      type: Boolean,
      default: true
    },
    setLook: {
      default: "",
    },
    close: {
      type: Boolean,
      default: true
    },
    butName: {
      type: String,
      default: '保存'
    }
  }
}
</script>
